// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   ScreenDetector.java

package presenter;

import java.awt.*;
import java.io.PrintStream;

public class ScreenDetector
{

    public ScreenDetector()
    {
        GraphicsDevice devices[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
        for(int i = 0; i < devices.length; i++)
        {
            GraphicsDevice device = devices[i];
            GraphicsConfiguration config = device.getDefaultConfiguration();
            Rectangle bounds = config.getBounds();
            //System.out.println((new StringBuilder()).append("Bounds for \"").append(device.getIDstring()).append("\": ").append(bounds).toString());
            if(i == 0)
                firstDisplayBounds = bounds;
            if(i == 1)
                secondDisplayBounds = bounds;
        }

    }

    public Rectangle getSecondDisplayBounds()
    {
        return secondDisplayBounds;
    }

    public Rectangle getFirstDisplayBounds()
    {
        return firstDisplayBounds;
    }

    public static void main(String args[])
    {
        ScreenDetector sd = new ScreenDetector();
        //System.out.println(sd.getSecondDisplayBounds());
    }

    Rectangle firstDisplayBounds;
    Rectangle secondDisplayBounds;
}
